package com.dstz.demo.core.manager.impl;

import com.dstz.base.api.query.QueryFilter;
import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.PCompanyFinancialSituationDao;
import com.dstz.demo.core.manager.PCompanyFinancialSituationManager;
import com.dstz.demo.core.model.PCompanyFinancialSituation;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 财务状况表 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2019-11-30 20:10:28
 */
@Service("pCompanyFinancialSituationManager")
public class PCompanyFinancialSituationManagerImpl extends BaseManager<String, PCompanyFinancialSituation> implements PCompanyFinancialSituationManager {
	@Resource
	PCompanyFinancialSituationDao pCompanyFinancialSituationDao;

	@Override
	public void insertPCompanyFinancialSituation(PCompanyFinancialSituation pCompanyFinancialSituation) {
		pCompanyFinancialSituationDao.create(pCompanyFinancialSituation);
	}

	@Override
	public List<PCompanyFinancialSituation> selectPCompanyFinancialSituation(QueryFilter queryFilter) {
		return pCompanyFinancialSituationDao.query(queryFilter);
	}

	@Override
	public void deletePCompanyFinancialSituation(String id) {
		pCompanyFinancialSituationDao.remove(id);
	}

	@Override
	public void updatePCompanyFinancialSituation(PCompanyFinancialSituation pCompanyFinancialSituation) {
		pCompanyFinancialSituationDao.update(pCompanyFinancialSituation);
	}
}
